using System;
using ZhCun.DbCore.Entitys;

namespace ZhCun.WebCommon.DBModels
{
	public partial class VSysUser : EntityBase
	{
		private System.String _Id;
		/// <summary>
		/// Id
		/// </summary>
		[Entity(ColumnName = CNId, IsPrimaryKey = true, IsNotNull = true)]
		public System.String Id
		{
			get { return _Id; }
			set
			{
				_Id = value;
				base.SetFieldChanged(CNId) ;
			}
		}

		private System.String _UserName;
		/// <summary>
		/// UserName
		/// </summary>
		[Entity(ColumnName = CNUserName, IsNotNull = true)]
		public System.String UserName
		{
			get { return _UserName; }
			set
			{
				_UserName = value;
				base.SetFieldChanged(CNUserName) ;
			}
		}

		private System.String _MobileNumber;
		/// <summary>
		/// MobileNumber
		/// </summary>
		[Entity(ColumnName = CNMobileNumber)]
		public System.String MobileNumber
		{
			get { return _MobileNumber; }
			set
			{
				_MobileNumber = value;
				base.SetFieldChanged(CNMobileNumber) ;
			}
		}

		private System.String _LoginName;
		/// <summary>
		/// LoginName
		/// </summary>
		[Entity(ColumnName = CNLoginName, IsNotNull = true)]
		public System.String LoginName
		{
			get { return _LoginName; }
			set
			{
				_LoginName = value;
				base.SetFieldChanged(CNLoginName) ;
			}
		}

		private System.Int32 _LoginCount;
		/// <summary>
		/// LoginCount
		/// </summary>
		[Entity(ColumnName = CNLoginCount, IsNotNull = true)]
		public System.Int32 LoginCount
		{
			get { return _LoginCount; }
			set
			{
				_LoginCount = value;
				base.SetFieldChanged(CNLoginCount) ;
			}
		}

		private System.Int32? _LastLoginMode;
		/// <summary>
		/// LastLoginMode
		/// </summary>
		[Entity(ColumnName = CNLastLoginMode)]
		public System.Int32? LastLoginMode
		{
			get { return _LastLoginMode; }
			set
			{
				_LastLoginMode = value;
				base.SetFieldChanged(CNLastLoginMode) ;
			}
		}

		private System.Int32 _OnLineLoginNumber;
		/// <summary>
		/// OnLineLoginNumber
		/// </summary>
		[Entity(ColumnName = CNOnLineLoginNumber, IsNotNull = true)]
		public System.Int32 OnLineLoginNumber
		{
			get { return _OnLineLoginNumber; }
			set
			{
				_OnLineLoginNumber = value;
				base.SetFieldChanged(CNOnLineLoginNumber) ;
			}
		}

		private System.Boolean _IsManage;
		/// <summary>
		/// IsManage
		/// </summary>
		[Entity(ColumnName = CNIsManage, IsNotNull = true)]
		public System.Boolean IsManage
		{
			get { return _IsManage; }
			set
			{
				_IsManage = value;
				base.SetFieldChanged(CNIsManage) ;
			}
		}

		private System.String _RoleId;
		/// <summary>
		/// RoleId
		/// </summary>
		[Entity(ColumnName = CNRoleId, IsNotNull = true)]
		public System.String RoleId
		{
			get { return _RoleId; }
			set
			{
				_RoleId = value;
				base.SetFieldChanged(CNRoleId) ;
			}
		}

		private System.String _RoleName;
		/// <summary>
		/// RoleName
		/// </summary>
		[Entity(ColumnName = CNRoleName)]
		public System.String RoleName
		{
			get { return _RoleName; }
			set
			{
				_RoleName = value;
				base.SetFieldChanged(CNRoleName) ;
			}
		}

		private System.DateTime? _AddTime;
		/// <summary>
		/// AddTime
		/// </summary>
		[Entity(ColumnName = CNAddTime)]
		public System.DateTime? AddTime
		{
			get { return _AddTime; }
			set
			{
				_AddTime = value;
				base.SetFieldChanged(CNAddTime) ;
			}
		}

		#region 字段名的定义
		public const string CNId = "Id";
		public const string CNUserName = "UserName";
		public const string CNMobileNumber = "MobileNumber";
		public const string CNLoginName = "LoginName";
		public const string CNLoginCount = "LoginCount";
		public const string CNLastLoginMode = "LastLoginMode";
		public const string CNOnLineLoginNumber = "OnLineLoginNumber";
		public const string CNIsManage = "IsManage";
		public const string CNRoleId = "RoleId";
		public const string CNRoleName = "RoleName";
		public const string CNAddTime = "AddTime";
		#endregion

	}
}
